package com.goldplusgold.tradedelay.app.home.serivce;

import com.goldplusgold.network.lib.annotation._HTTP_GET;
import com.goldplusgold.network.lib.annotation._HTTP_PARAM;
import com.goldplusgold.network.lib.annotation._HTTP_URL;
import com.goldplusgold.tradedelay.app.home.pojo.ArticleList;
import com.goldplusgold.tradedelay.app.home.pojo.BannerList;
import com.goldplusgold.tradedelay.app.home.pojo.TDLogin;

/**
 * Created by admin on 2017/5/8.
 */

public interface ApiHome {
    @_HTTP_GET
    @_HTTP_URL(url = ApiConfig._BANNER_LIST_URL)
    BannerList getBannerList() throws Exception;

    @_HTTP_GET
    @_HTTP_URL(url = ApiConfig._ARTICLE_LIST_URL)
    ArticleList getArticleList(@_HTTP_PARAM("offset")
                                       int offset,
                               @_HTTP_PARAM("count")
                                       int count,
                               @_HTTP_PARAM("newsType")
                                       String newsType
    ) throws Exception;
    @_HTTP_GET
    @_HTTP_URL(url = ApiConfig._GET_TD_LOGIN_STATE_URL)
    TDLogin getTDLoginState() throws Exception;
}
